﻿using AgateLib.Sprites;
using AiAsteriods.Game.Entities.Base;
using AiAsteriods.Game.Entities.Enemies;
using AiAsteriods.Game.State;

namespace AiAsteriods.Game.Entities.Projectile {
  class Bullet : EntityAbstract {
    public Bullet(Sprite s, int x, int y, double speed, double rot, double radius, int collisionDamage, int lifetime, GameStateAbstract state)
      : base(s, x, y, rot, speed, radius, collisionDamage, lifetime, state) {
    }

    public override void Update(int delta) {
      base.Update(delta);
    }

    public override void Draw() {
      base.Draw();
    }

    public override void Collide(EntityAbstract e) {
      if (e is Enemy) {
        base.Collide(e);
        //StarExplosion explo = new StarExplosion((int)this.X, (int)this.Y, 0, 0, myState);
        //myState.AddEntity(explo);
      }
    }
  }
}
